<%--%----%>
<%--Created by IntelliJ IDEA.--%>
<%--User: jiangzhenzhen--%>
<%--Date: 2018/7/18--%>
<%--Time: 15:18--%>
<%--To change this template use File | Settings | File Templates.--%>
<%--&ndash;%&gt;--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jsp/component/common.jsp" %>

<html>
<head>
    <title>失智档案--ADIE记录</title>
    <%--<%@ include file="/WEB-INF/jsp/component/commonBottom.jsp" %>--%>
    <script src="${assets}/js/views/vue.min.js"></script>
    <link rel="stylesheet" href="${frames}/css/lib/bootstrap.min.css" type="text/css">
    <%--<link rel="stylesheet" href="${frames}/css/lib/dataTables.bootstrap.css" type="text/css">--%>
    <%@ include file="/WEB-INF/jsp/component/commonBottom.jsp" %>
    <script type="text/javascript" src="${assets}/js/echarts.js"></script>
    <link rel="stylesheet" href="${frames}/css/paginate.css" type="text/css">
    <script src="${js}/jquery-1.9.1.min.js"></script>
    <link href="${assets}/css/bootstrap-datetimepicker.css" type="text/css">
    <script src="${assets}/js/bootstrap-datetimepicker.min.js"></script>
    <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
    <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="${assets}/css/bootstrapDatepickr-1.0.0.css">
    <script src="${assets}/js/bootstrapDatepickr-1.0.0.min.js"></script>
    <%--<link rel="stylesheet" href="${frames}/css/lib/dataTables.bootstrap.css" type="text/css">--%>
    <%--<link rel="stylesheet" href="${frames}/css/paginate.css" type="text/css">--%>
    <%--<link rel="stylesheet" href="${newframe}/css/base/base.css" type="text/css">--%>
    <%--<link rel="stylesheet" href="${frames}/css/table.css" type="text/css">--%>
    <link rel="stylesheet" href="${frames}/css/qulitity.css" type="text/css">
    <%--<link rel="stylesheet" href="../assets/css/views/modules/_common.scss">--%>
    <%--<link rel="stylesheet" href="${frames}/css/qulitity.css" type="text/css" type="text/css">--%>
    <%--<script src="${assets}/js/views/bpAbnormal.js"></script>--%>
    <link rel="stylesheet" href="${assets}/css/views/modules/_common.scss">
    <link rel="stylesheet" href="${assets}/css/views/archives/pArchives.css">
    <link rel="stylesheet" href="${assets}/css/views/department/departmentMgr.css">
    <script src="${frames}/Chronic/laydate/laydate.js"></script>
    <script src="${js}/jquery.dataTables.js"></script>
    <style>
        #tablepart5 .dataTables_paginate .current,
        #table3 .dataTables_paginate .active {
            color: #35acfd;
            cursor: default;
            background-color: #ffffff;
            border: none;
        }

        #tablepart5 .dataTables_paginate a,
        #table3 .dataTables_paginate a {
            display: inline-block;
            width: 24px;
            height: 24px;
            border: none;
            color: #333333;
            text-align: center;
        }

        #tablepart5 .pagination .active a,
        #table3 .pagination .active a {
            color: #35acfd;
            cursor: default;
            background-color: #ffffff;
            border: none;
        }

        #bpillness span {
            margin-top: 0 !important;
        }

        .feritin input {
            /*width:20px;*/
            /*height:20px;*/
            vertical-align: middle;
            margin-bottom: 7px;
            display: inline-block !important;
        }

        /*各种历史，默认隐藏*/
        .personHistory {
            display:none;
        }
        #illnessTable tr td{
            border:#ccc solid 1px;
            padding: 5px 10px;
            color:#666666;
        }
        #illnessTable tr td:first-child{
            width:22%;
        }
    </style>
</head>
<body>
<div>
    <%@ include file="../../breadline.jsp" %>
</div>
<div id="main">
    <%--    病人基本信息模块开始--%>
    <div style="padding-bottom:20px;background-color: #ffffff;box-shadow: 0 3px 7px 0 rgba(0, 0, 0, 0.05);">
        <div style="margin-left:19px;">
            <div class="first_news">
                <div class="news" style="margin-top:15px;margin-bottom:16px;">
                    <h3>病人基本信息</h3>
                    <button type="button" class="btn btn-info" @click="updateInfo()" >
                        <img src="${assets}/images/revise.png" alt="" style="width:16px;vertical-align: middle;">  修改
                    </button>
                    <%--                    <button :disabled="dis" id="btnText" v-if="synchronous" type="button" class="btn btn-info" @click="Synchronous($event)">{{btnText}}</button>--%>
                </div>
                <div style="display: flex;">
                    <div class="img" style="width:12%;">
                        <img src="${assets}/images/img1.png" alt="头像">
                    </div>
                    <div class="infor" style="width:80%;margin-left:2%;">
                        <div>
                            <span style="width:17%;">姓名: &nbsp;{{infor.realname}}</span>
                            <span style="width:15%;">性别: &nbsp;{{infor.sex}}</span>
                            <span style="width:15%;">年龄: &nbsp;{{infor.age}}</span>
                            <span style="width:22%;">出生日期: &nbsp;{{infor.birthday}}</span>
                            <span>身份证号: &nbsp;{{infor.idcard}}</span>
                        </div>
                        <div>
                            <span style="width:17%;">身高: &nbsp;{{infor.height}}cm</span>
                            <span style="width:15%;">体重: &nbsp;{{infor.weight}}kg</span>
                            <span style="width:15%;">BMI: &nbsp;{{infor.bMI}}</span>
                            <span style="width:22%;">腰围: &nbsp;{{infor.waist}}cm</span>
                            <span style="width:24%;">联系电话: &nbsp;{{infor.phone}}</span>
                        </div>
                        <div class="other">
                            <span style="width:30%;margin-right:0;vertical-align:middle">地址: &nbsp;{{infor.homeaddress}}</span>
                            <span style="width:33%;margin-right:0;vertical-align:middle">现患疾病诊断信息: &nbsp;{{infor.diseaseDiagnosis}}</span>
                            <span class="type" style="width:20%;margin-left:5%;vertical-align:middle;">
                                <p :title="infor.diseasesType" style="overflow: hidden;-webkit-line-clamp: 1;display: -webkit-box;-webkit-box-orient: vertical;">疾病类型: &nbsp;{{infor.diseaseName}}</p>
                            </span>
                        </div>
                        <div class="type" style="margin-top:13px;">
                            <b style="margin-right:5%;font-weight: 100;">建档医生: &nbsp;{{infor.doctor}}</b>
                            <b style="font-weight: 100;margin-right:5%;">建档机构: &nbsp;{{infor.hospName}}</b>
                            <b style="font-weight: 100;">备注: &nbsp;{{infor.remark}}<br/></b>
                            <b style="font-weight: 100;" id="bgRemark"></b>
                            <b style="font-weight: 100;" id="bpRemark"></b>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <%--    病人基本信息模块结束--%>
    <%--    诊疗信息开始--%>
    <div class="illness" style="width:99%; margin-right:19px;">
        <div class="tableWrap" style="padding-bottom:20px;background-color: #ffffff;box-shadow: 0 3px 7px 0 rgba(0, 0, 0, 0.05);">
            <div style="margin-left:20px;">
                <h3 style="margin-bottom:16px;font-size:20px;">诊疗信息</h3>
                <button type="button" class="btn btn-info" @click="saveADIE()">
                    <img src="${assets}/images/revise.png" alt="" style="width:16px;vertical-align: middle;">  保存
                </button>
            </div>
            <div style="margin-left:19px;">
                <div class="way">
                    <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                    <span class="title">ADIE记录</span>
                    <div class="way_content">
                        <div style="margin-bottom:0px;">
                            <label for="">ADIE记录日期：</label>
                            <div class="input-group date form_date" data-date-format="yyyy-mm-dd" style="display:inline-block !important;width:15%;">
                                <input id="beginDate" type="text" class="lay-date" v-model="ADIEData.answerTime" readonly style="width:100% !important;">
                            </div>
                            <label for="" style="margin-left:40px;">病区：</label>
                            <input type="text" >
                            <label for="" style="margin-left:40px;">床号：</label>
                            <input type="text" >
                            <label for="" style="margin-left:40px;">住院号：</label>
                            <input type="text" >
                            <%--<label for="" style="margin-left:20px;">随访医师：</label>--%>
                            <%--<input type="text"  v-model="checkData.doctorName">--%>
                        </div>
                    </div>
                    <div class="way">
                        <span style="width:5px;padding-bottom:25px;background-color:#35acfd;display:inline-block;vertical-align:middle;margin-right:10px;"></span>
                        <span class="title">ADIE记录问题</span>
                        <div class="way_content">
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;">1、今年的年份?</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" v-model="ADIEData.nowadaysYear" value="1" @change="getRadioVal" name="yearRadio" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" v-model="ADIEData.nowadaysYear" value="0" name="yearRadio" @change="getRadioVal">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;">2、现在是什么季节？</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" v-model="ADIEData.nowadaysSeason" value="1" @change="getRadioVal" name="seasonRadio" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" name="seasonRadio" v-model="ADIEData.nowadaysSeason" value="0" @change="getRadioVal">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;">3、今天是几号？</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" v-model="ADIEData.nowadaysDay" value="1" @change="getRadioVal" name="nowadaysDayRadio" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" v-model="ADIEData.nowadaysDay" value="0" @change="getRadioVal" name="nowadaysDayRadio" >
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;">4、今天是星期几？</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" v-model="ADIEData.nowadaysWeek" value="1" @change="getRadioVal" name="nowadaysWeekRadio" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" name="nowadaysWeekRadio" v-model="ADIEData.nowadaysWeek" value="0" @change="getRadioVal" >
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;">5、现在是几月份？</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" name="nowadaysMonthRadio" v-model="ADIEData.nowadaysMonth" value="1" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio"  name="nowadaysMonthRadio" v-model="ADIEData.nowadaysMonth" value="0" @change="getRadioVal">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;">6、现在我们在哪个省，市？</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" name="currentAddressCityRadio" v-model="ADIEData.currentAddressCity" value="1" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" name="currentAddressCityRadio" v-model="ADIEData.currentAddressCity" value="0" @change="getRadioVal">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;">7、你现在在哪一县（区）？</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" name="currentAddressCountyCityRadio" v-model="ADIEData.currentAddressCounty" value="1" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" name="currentAddressCountyCityRadio" v-model="ADIEData.currentAddressCounty" value="0" @change="getRadioVal">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;">8、你现在在哪一乡（镇、街道）？</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" name="currentAddressTownCityRadio" v-model="ADIEData.currentAddressTown" value="1" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio"  name="currentAddressTownCityRadio" v-model="ADIEData.currentAddressTown" value="0" @change="getRadioVal">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;">9、你现在在哪一层楼上？</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" name="currentAddressFloorRadio" v-model="ADIEData.currentAddressFloor" value="1" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" name="currentAddressFloorRadio" v-model="ADIEData.currentAddressFloor" value="0" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;display:block;">10、这里是什么地方？</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" name="currentAddressRadio" v-model="ADIEData.currentAddress" value="1" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" name="currentAddressRadio" v-model="ADIEData.currentAddress" value="0" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;display:block;">11、复述：皮球</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" name="repeatBallRadio" v-model="ADIEData.repeatBall" value="1" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" name="repeatBallRadio" v-model="ADIEData.repeatBall" value="0" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;display:block;">12、复述：国旗</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" name="repeatNationalFlagRadio" v-model="ADIEData.repeatNationalFlag" value="1" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" name="repeatNationalFlagRadio" v-model="ADIEData.repeatNationalFlag" value="0" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;display:block;">13、复述：树木</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" name="repeatTreeRadio" v-model="ADIEData.repeatTree" value="1" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" name="repeatTreeRadio" v-model="ADIEData.repeatTree" value="0" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;">14、100－7=？（继续减下去，不要提示）？</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" name="calculate100Minus7Radio" v-model="ADIEData.calculate100Minus7" value="1" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" name="calculate100Minus7Radio" v-model="ADIEData.calculate100Minus7" value="0" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;">15、93－7=？</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" name="calculate93Minus7Radio" v-model="ADIEData.calculate93Minus7" value="1" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" name="calculate93Minus7Radio" v-model="ADIEData.calculate93Minus7" value="0" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label for="calculate86Minus7" style="margin-top:5px;">16、86－7=？</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" name="calculate86Minus7Radio" v-model="ADIEData.calculate86Minus7" value="1" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" name="calculate86Minus7Radio" v-model="ADIEData.calculate86Minus7" value="0" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;">17、79－7=？</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" name="calculate79Minus7Radio" v-model="ADIEData.calculate79Minus7" value="1" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" name="calculate79Minus7Radio" v-model="ADIEData.calculate79Minus7" value="0" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;">18、72－7=？</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" name="calculate72Minus7Radio" v-model="ADIEData.calculate72Minus7" value="1" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" name="calculate72Minus7Radio" v-model="ADIEData.calculate72Minus7" value="0" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;display:block;">19、辨认：铅笔</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" name="identifyPencilRadio" v-model="ADIEData.identifyPencil" value="1" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" name="identifyPencilRadio" v-model="ADIEData.identifyPencil" value="0" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;display:block;">20、复述：四十四只石狮子</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" name="repeatFortyFourStoneLionsRadio" v-model="ADIEData.repeatFortyFourStoneLions" value="1" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" name="repeatFortyFourStoneLionsRadio" v-model="ADIEData.repeatFortyFourStoneLions" value="0" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;display:block;">21、按图片做：把写有“闭眼睛”大字的卡片给患者看</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" name="followPictureCloseEyesRadio" v-model="ADIEData.followPictureCloseEyes" value="1" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" name="followPictureCloseEyesRadio" v-model="ADIEData.followPictureCloseEyes" value="0" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;display:block;">22、回忆：皮球</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" name="recallBallRadio" v-model="ADIEData.recallBall" value="1" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" name="recallBallRadio" v-model="ADIEData.recallBall" value="0" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;display:block;">23、回忆：国旗</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" name="recallNationanFlagRadio" v-model="ADIEData.recallNationanFlag" value="1" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" name="recallNationanFlagRadio" v-model="ADIEData.recallNationanFlag" value="0" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;display:block;">24、回忆：树木</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" name="recallTreeRadio" v-model="ADIEData.recallTree" value="1" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" name="recallTreeRadio" v-model="ADIEData.recallTree" value="0" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;display:block;">25、用右手拿纸</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" name="holdPaperRadio" v-model="ADIEData.holdPaper" value="1" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" name="holdPaperRadio" v-model="ADIEData.holdPaper" value="0" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;display:block;">26、将纸对折</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" name="foldPaperRadio" v-model="ADIEData.foldPaper" value="1" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" name="foldPaperRadio" v-model="ADIEData.foldPaper" value="0" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;display:block;">27、放在大腿上</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" name="onLapRadio" v-model="ADIEData.onLap" value="1" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" name="onLapRadio" v-model="ADIEData.onLap" value="0" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;display:block;">28、说一句完整的有意义的句子(句子必须有主语，动词)记下所叙述句子的全文</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" name="sayWholeSentenceRadio" v-model="ADIEData.sayWholeSentence" value="1" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" name="sayWholeSentenceRadio" v-model="ADIEData.sayWholeSentence" value="0" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;display:block;">29、辨认：手表</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" name="identifyWatchRadio" v-model="ADIEData.identifyWatch" value="1" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" name="identifyWatchRadio" v-model="ADIEData.identifyWatch" value="0" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                </div>
                            </div>
                            <div class="feritin fadeContainer">
                                <div class="question">
                                    <label style="margin-top:5px;display:block;">30、按样做图</label>
                                </div>
                                <div class="getscore" style="margin:5px 24px;width:100%;height:24px;">
                                    <div class="right" style="margin-right:30px;float:left">
                                        <label for="" style="margin-right:10px;">能</label>
                                        <input type="radio" name="followPictureRadio" v-model="ADIEData.followPicture" value="1" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                    <div class="error" style="float:left">
                                        <label for="">不能</label>
                                        <input type="radio" name="followPictureRadio" v-model="ADIEData.followPicture" value="0" @change="getRadioVal" style="margin-right:30px;">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="result">
                <div class="ramark" style="width:90%;margin:0 auto;height:60px;">
                    <h3>评分标准：满分30分，能为1分，不能为0分。文盲>=17分;小学>=20分；初中及以上>=24分。注：文化程度</h3>
                    <div class="score" style="width:40%;float:left;height:45px;padding:5px 0;">
                        <h3 style="float:left;">总分：</h3>
                        <input v-model="TotalScore" style="font-size:18px;fot-weight:bolder;border:none;border-bottom:#ccc solid 1px;width:60px;"/>
                        <span>分</span>
                    </div>
                    <div class="result" style="width:50%;float:left;height:45px;padding:5px 0;">
                        <h3 style="float:left;">文化程度：</h3>
                        <input v-model="ADIEData.result" style="font-size:16px;font-weight:bolder;border:none;border-bottom:#ccc solid 1px;width:60px;"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <%--    诊疗信息结束--%>
</div>

<script>
  var vm = new Vue({
    el: "#main",
    data:{
      id:'',
      idcard:'',
      TotalScore:'',
      currentSymptoms:[
        {
          name: '记忆障碍',
          id: '1',
          forId: 'ysxjb1',
          checkName: 'currentSymptoms',
          checked: false
        },
        {
          name: '视空间障碍',
          id: '2',
          forId: 'ysxjb2',
          checkName: 'currentSymptoms',
          checked: false
        },
        {
          name: '人格障碍',
          id: '3',
          forId: 'ysxjb3',
          checkName: 'currentSymptoms',
          checked: false
        },
        {
          name: '工作、学习新知识能力下降',
          id: '4',
          forId: 'ysxjb4',
          checkName: 'currentSymptoms',
          checked: false
        },
        {
          name: '社会接触能力减退',
          id: '5',
          forId: 'ysxjb5',
          checkName: 'currentSymptoms',
          checked: false
        },
        {
          name: '原已掌握的的知识和技巧出现明显衰退',
          id: '6',
          forId: 'ysxjb6',
          checkName: 'currentSymptoms',
          checked: false
        },
        {
          name: '失语、失用、失认',
          id: '7',
          forId: 'ysxjb7',
          checkName: 'currentSymptoms',
          checked: false
        },
        {
          name: '行为和精神异常',
          id: '8',
          forId: 'ysxjb8',
          checkName: 'currentSymptoms',
          checked: false
        },
        {
          name: '情感淡漠、哭笑无常',
          id: '9',
          forId: 'ysxjb9',
          checkName: 'currentSymptoms',
          checked: false
        },
        {
          name: '言语能力丧失',
          id: '10',
          forId: 'ysxjb10',
          checkName: 'currentSymptoms',
          checked: false
        },
        {
          name: '不能完成简单的日常生活事项',
          id: '11',
          forId: 'ysxjb7',
          checkName: 'currentSymptoms',
          checked: false
        },
        {
          name: '终日无语我床',
          id: '12',
          forId: 'ysxjb8',
          checkName: 'currentSymptoms',
          checked: false
        },
        {
          name: '四肢强直或屈曲瘫痪',
          id: '13',
          forId: 'ysxjb9',
          checkName: 'currentSymptoms',
          checked: false
        },
        {
          name: '并发症（如肺部及尿路感染、压疮、全身性衰竭等）',
          id: '14',
          forId: 'ysxjb10',
          checkName: 'currentSymptoms',
          checked: false
        },
        {
          name: '其他',
          id: '15',
          forId: 'ysxjb10',
          checkName: 'currentSymptoms',
          checked: false
        }
      ],
      infor:{},
      ADIEData:{
        id:'',
        idCard:'',
        answerTime:'',    //答题时间
        patientName:'',    //病人姓名
        patientWard:'',     //病人病区
        patientBedNo:'',    //病人床号
        score:'',           //总分
        result:'',          //评测结果
        patientHospitalNumber:'',  //病人住院号
        nowadaysYear:'',           //今年的年份？
        nowadaysSeason:'',         //现在是什么季节？
        nowadaysDay:'',            //今天是几号？
        nowadaysWeek:'',            //今天是星期几？
        nowadaysMonth:'',            //现在是几月份？
        currentAddressCity:'',            //现在我们在哪个省，市？
        currentAddressCounty:'',            //你现在在哪一县（区）？
        currentAddressTown:'',            //你现在在哪一乡（镇、街道）？？
        currentAddressFloor:'',            //你现在在哪一层楼上？
        currentAddress:'',            //这里是什么地方？
        repeatBall:'',            //复述：皮球
        repeatNationalFlag:'',      //复述：国旗
        repeatTree:'',            //复述：树木
        calculate100Minus7:'',            //计算：100－7=？
        calculate93Minus7:'',            //93－7=？
        calculate86Minus7:'',            //86－7=？
        calculate79Minus7:'',            //79－7=？
        calculate72Minus7:'',            //72－7=？
        identifyPencil:'',            //辨认：铅笔？
        repeatFortyFourStoneLions:'',            //复述：四十四只石狮子
        followPictureCloseEyes:'',            //按图片做：把写有“闭眼睛”大字的卡片给患者看
        recallBall:'',            //回忆：皮球
        recallNationanFlag:'',            //回忆：国旗
        recallTree:'',            //回忆：树木
        holdPaper:'',            //用右手拿纸
        foldPaper:'',            //将纸对折
        onLap:'',               //放在大腿上
        sayWholeSentence:'',   //说一句完整的有意义的句子(句子必须有主语，动词)记下所叙述句子的全文
        identifyWatch:'',            //辨认：手表
        followPicture:'',            //按样做图
      },
      question:{}
    },
    methods:{
      getPersonalInfo(){
        let that = this;
        // 获取病人信息
        $.ajax({
          url: "${URL_PATIENT_PATIENTINFO}",
          type: 'post',
          dataType: "json",
          data: {
            idCard: that.idcard
          },
          success: function (data) {
            if(data.success){
              that.infor = data.data;
            }
          }
        })
      },
      initLayDate(id) {
        laydate({
          elem: id,
          istime: true,
          format: 'YYYY-MM-DD',
          choose: function (dates) { //选择好日期的回调
            // initTablePatient();
          }
        })
      },
      // 新增ADIE记录、修改ADIE记录
      saveADIE(){
        var that = this;
        var url = '';
        that.ADIEData.idCard= that.idcard;
        that.ADIEData.answerTime = $('#beginDate').val();
        if(that.id == ''){
          url = '${ctx}/lose/wisdom/questionnaire/ADIE/save';
        }else{
          that.ADIEData.id = that.id;
          url = '${ctx}/lose/wisdom/questionnaire/ADIE/update';
        }
        $.ajax({
          url:url,
          // contentType:'application/json;charset=utf-8',
          contentType:'application/x-www-form-urlencoded',
          traditional:true,
          data: that.ADIEData,
          dataType:'json',
          type:'post',
          success:function(data){
            $.ajax({
              url:"${URL_SCREENING_GETBREADLINE}",
              dataType:'json',
              type:'post',
              success:function(data){
                var urlLib = '';
                urlLib = JSON.parse(data.data).slice(0,urlLib.length-1);

                $.ajax({
                  url:'${URL_SCREENING_SAVEBREADLINE}',
                  data:{
                    breadLine:JSON.stringify(urlLib)
                  },
                  dataType:'json',
                  type:'post',
                  success:function(data){
                    parent.showSrc(urlLib[urlLib.length-1].href);
                    // 刷新当前页面
                    window.parent.simpleCloseModal();
                  }
                })
              }
            })
          }
        })
      },
      // 修改病人基本信息
      updateInfo: function () {
        let that = this;
        var add = location.search.split('?')[1].split('&')
        var type = location.search.split('?')[1].split('&')[add.length - 1].split('=')[1];

        window.parent.showNewModelIframe("${ctx}/pppatientbase/new/update?id=" + that.infor.id + '&diseasesType=' + type + '&type=' + that.Type, 800, 650);
      },
      getRadioVal() {
        let sum = 0;
        const {nowadaysYear,nowadaysSeason,nowadaysDay,nowadaysWeek,nowadaysMonth,currentAddressCity,currentAddressCounty,currentAddressTown,currentAddressFloor,currentAddress,repeatBall,repeatNationalFlag,repeatTree,calculate100Minus7,calculate93Minus7,calculate86Minus7,calculate79Minus7,calculate72Minus7,identifyPencil,repeatFortyFourStoneLions,followPictureCloseEyes,recallBall,recallNationanFlag,recallTree,holdPaper,foldPaper,onLap,sayWholeSentence,identifyWatch,followPicture} = this.ADIEData;

        this.question = {nowadaysYear,nowadaysSeason,nowadaysDay,nowadaysWeek,nowadaysMonth,currentAddressCity,currentAddressCounty,currentAddressTown,currentAddressFloor,currentAddress,repeatBall,repeatNationalFlag,repeatTree,calculate100Minus7,calculate93Minus7,calculate86Minus7,calculate79Minus7,calculate72Minus7,identifyPencil,repeatFortyFourStoneLions,followPictureCloseEyes,recallBall,recallNationanFlag,recallTree,holdPaper,foldPaper,onLap,sayWholeSentence,identifyWatch,followPicture};
        //
        for(let i in this.question){
          if(this.question[i] == ''){
            this.question[i] = 0;
          }else{
            this.question[i] = parseInt(this.question[i]);
          }
          sum += parseInt(this.question[i]);
        }
        this.TotalScore = sum;
        this.ADIEData.score = this.TotalScore;
        if(this.ADIEData.score <= 17){
          this.ADIEData.result = '文盲';
        }else if(this.ADIEData.score >= 20 && this.score <= 24){
          this.ADIEData.result = '小学';
        }else if(this.ADIEData.score >= 24){
          this.ADIEData.result = '初中及以上';
        }
      },
      // 回显ADIE的内容
      show:function(id){
        var that = this;
        $.ajax({
          url:'${ctx}/lose/wisdom/questionnaire/ADIE/detail',
          // contentType:'application/json;charset=utf-8',
          contentType:'application/x-www-form-urlencoded',
          data: {
            id:id
          },
          dataType:'json',
          type:'post',
          success:function(res){
            // debugger
            const {nowadaysYear,nowadaysSeason,nowadaysDay,nowadaysWeek,nowadaysMonth,currentAddressCity,currentAddressCounty,currentAddressTown,currentAddressFloor,currentAddress,repeatBall,repeatNationalFlag,repeatTree,calculate100Minus7,calculate93Minus7,calculate86Minus7,calculate79Minus7,calculate72Minus7,identifyPencil,repeatFortyFourStoneLions,followPictureCloseEyes,recallBall,recallNationanFlag,recallTree,holdPaper,foldPaper,onLap,sayWholeSentence,identifyWatch,followPicture} = res.data;

            that.ADIEData = {nowadaysYear,nowadaysSeason,nowadaysDay,nowadaysWeek,nowadaysMonth,currentAddressCity,currentAddressCounty,currentAddressTown,currentAddressFloor,currentAddress,repeatBall,repeatNationalFlag,repeatTree,calculate100Minus7,calculate93Minus7,calculate86Minus7,calculate79Minus7,calculate72Minus7,identifyPencil,repeatFortyFourStoneLions,followPictureCloseEyes,recallBall,recallNationanFlag,recallTree,holdPaper,foldPaper,onLap,sayWholeSentence,identifyWatch,followPicture};
          }
        })
      },
      // 获取地址里的参数
      getParams(name){
        name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
        var regexS = "[\\?&]"+name+"=([^&#]*)";
        var regex = new RegExp( regexS );
        var results = regex.exec( window.location.href );
        if( results == null )
          return "";
        else
          return results[1];
      },
      // 当前日期
      getNowFormatDate() {
        var date = new Date();
        var seperator1 = "-";
        var year = date.getFullYear();
        var month = date.getMonth() + 1;
        var strDate = date.getDate();
        if (month >= 1 && month <= 9) {
          month = "0" + month;
        }
        if (strDate >= 0 && strDate <= 9) {
          strDate = "0" + strDate;
        }
        var currentdate = year + seperator1 + month + seperator1 + strDate;
        return currentdate;
      },
    },
    mounted(){
      this.idcard = this.getParams("idCard");
      this.id = this.getParams('id');
      this.getPersonalInfo(this.idcard);
      this.initLayDate('#beginDate');
      // 获取用药数据
      var date = this.getNowFormatDate();
      this.ADIEData.answerTime = date;
      if(this.id != ''){
        this.show(this.id);
      }
    }
  })


</script>
</body>
</html>